<html><body style='margin: 0 0 0 0;'><div style='height: 100px; border: solid 1px black;' contenteditable=true>
This layout test is checks that we don't crash when a stand alone image is dragged into a content editable div. <br />
<a href='rdar://problem/5021127'>rdar://problem/5021127</a>
</div></body>
<script>
function finish()
{
    window.parent.finish();
}

function waitForImageLoad()
{
    if (!window.testRunner)
        return;

    var img = document.body.getElementsByTagName("img")[0];
    if (img.width != 0)
        finish();
    else {
        img.addEventListener("load", function() {
            finish();
        }, false);
    }
}
</script>
</html>
